<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    let arr = [
        {
            pname:"华为手机",
            price:5699
        },
        {
            pname:"华为手机2",
            price:4699
        },
        {
            pname:"华为手机3",
            price:5322
        },
        {
            pname:"华为手机4",
            price:5788
        }
    ]
    // 筛选 价格高于5000的 且前面加上￥
    var arr1 = arr.filter(item=>item.price>5000);
    var res = arr1.map(item=>({
        pname:item.pname,
        price:"￥"+item.price

    }))
    console.log(res);
</script>